package com.ruoyi.walmart.service.Inventory.impl;

import com.ruoyi.walmart.domain.Inventory.FulfillmentInventory;
import com.ruoyi.walmart.domain.InventoryLog.FulfillmentInventoryLog;
import com.ruoyi.walmart.domain.InventoryLog.InventoryLogSearch;
import com.ruoyi.walmart.domain.auth.ShopAuth;
import com.ruoyi.walmart.mapper.Inventory.FulfillmentInventoryLogMapper;
import com.ruoyi.walmart.mapper.Inventory.FulfillmentInventoryMapper;
import com.ruoyi.walmart.service.Inventory.FulfillmentInventoryLogService;
import com.ruoyi.walmart.service.Inventory.FulfillmentInventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FulfillmentInventoryLogServiceImpl implements FulfillmentInventoryLogService {

    @Autowired
    private FulfillmentInventoryLogMapper fulfillmentInventoryLogMapper;

    @Override
    public int fulfillmentInventoryLogInsertList(List<FulfillmentInventoryLog> fulfillmentInventoryLogList) {
        return fulfillmentInventoryLogMapper.fulfillmentInventoryLogInsertList(fulfillmentInventoryLogList);
    }
    /**
     * 库存日志数据
     * @param fulfillmentInventoryLog
     * @return
     */
    @Override
    public List<FulfillmentInventoryLog> selectInventoryLogList(FulfillmentInventoryLog fulfillmentInventoryLog) {
        return fulfillmentInventoryLogMapper.selectInventoryLogList(fulfillmentInventoryLog);
    }
    /**
     * 获取链接最新日志记录
     * @param
     * @return
     */
    @Override
    public List<InventoryLogSearch> getInventoryLog(ShopAuth shopAuth) {
        return fulfillmentInventoryLogMapper.getInventoryLog(shopAuth);
    }
    /**
     * 获取链接最新（入库）日志记录
     * @param
     * @return
     */
    @Override
    public List<InventoryLogSearch> getInventoryInboundLog(ShopAuth shopAuth) {
        return fulfillmentInventoryLogMapper.getInventoryInboundLog(shopAuth);
    }
}
